home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
NBC Slam Jams!
/
NBC Slam Jams!.iso
/
xtras
/
media_la
/
effector.cst
/
00015_Script_Magnify
< prev
next >
Wrap
Text File
|
1997-09-30
|
2KB
|
52 lines
-- Magnify
Property magnification,pInterp
on getPropertyDescriptionList
if not alphamaniacCheck(the currentSpriteNum) then exit
set pList=[:]
addProp pList,#magnification,[format:#integer,¼
comment:"Enter Magnification:",¼
Default:100,range:[min:100,max:500]]
addProp pList,#pInterp,[format:#symbol,¼
comment:"Interpolation:",¼
Default:#On,range:[#Off,#On,#Paused]]
return pList
end
on beginSprite me
set s=the spriteNum of me
if not alphaManiac(s) then exit
set pInterp=interpolation(pInterp)
Magnify(sprite s,[percentage:magnification,interpolation:pInterp])
end
on slideMagnify me, slider, p
set s=the spriteNum of me
if not alphaManiac(s) then exit
setMagnification(me,((p*400) / 100) + 100)
end
on setMagnification me, val
set magnification=val
Magnify(sprite (the spriteNum of me),[percentage:magnification,interpolation:pInterp])
end
on getBehaviorDescription me
set msg= "Turn your AlphaManiac into a cool magnifying glass! This is best used with your AlphaMania castmember's drawMethod set to #apply."
put return & return after msg
put "Parameters:" & return & "-----------" & return after msg
put "* Magnification: 0 to 500" & return after msg
put "* Interpolation: On,Off,or While Paused" after msg
put return & "-----------" & return & return & ">>>" && amTip() after msg
return msg
end